package com.fayou.cloud.multipledatasourcemybatisplus;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//@ComponentScan(basePackages = "com.fayou.cloud.multipledatasourcemybatisplus")
public class MultipleDatasourceMybatisPlusApplication {

    public static void main(String[] args) {
        SpringApplication.run(MultipleDatasourceMybatisPlusApplication.class, args);
//        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();
//        OrderTblService orderTblService = (OrderTblService) applicationContext.getBean("orderTblService");
//        orderTblService.queryById(1);

    }

}
